package cn.blue.org.service.impl;
import cn.blue.base.service.impl.BaseServiceImpl;
import cn.blue.org.domain.Employee;
import cn.blue.org.mapper. EmployeeMapper;
import cn.blue.org.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoProperties;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements EmployeeService {
    @Autowired
    private  EmployeeMapper employeeMapper;




    @Override
    public Employee selectBylogininfo(Long id) {
        return employeeMapper.selectBylogininfo(id);
    }

    @Override
    public List<Employee> selectByShopId(Long shopId) {
        return employeeMapper.selectByShopId(shopId);
    }
}
